package com.briup.day37;

import java.io.FileOutputStream;

public class IODemo3 {

	public static void main(String[] args) throws Exception {
		
		String path = "src/com/briup/day37/demo3.txt";;
		
		FileOutputStream fos = new FileOutputStream(path);
		
		String string = "好好学习，天天向上!";
		/*char[] c = string.toCharArray();
		for (int i = 0; i < c.length; i++) {
			fos.write(c[i]);
			
		}*/
		
		byte[] buff = string.getBytes();
		fos.write(buff);

	}

}
